package cn.ht.volatiledemo;

/**
 * @author ht
 * @Description:
 * @date 2020-5-21
 */
public class EnumSingleton {

    public static void main(String[] args) {

        for (int i = 1; i < 20; i++) {
            new Thread(()->{
                TestEnum success = TestEnum.SUCCESS;
            },String.valueOf(i)).start();
        }

    }
}
